package com.example.myapplication.model.db.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.example.myapplication.model.entity.Forum;
import com.example.myapplication.model.entity.ForumPics;
import com.example.myapplication.model.entity.NewsComment;
import com.example.myapplication.model.entity.User;

import java.util.List;

@Dao
public interface ForumPicsDao {
    //插入评论图片
    @Insert
    public void insertForum(ForumPics... forumPics);
    @Query("SELECT * FROM ForumPics")
    public List<ForumPics> findByAllForumPics();
    //更新评论图片
    @Update
    public void updateForumPics(ForumPics... forumPics);
    //删除评论图片
    @Delete
    public void deleteForumPics(ForumPics... forumPics);
}
